package com.example.back.service;

import com.example.back.entity.ShouCang;
import com.example.back.mapper.ShouCangMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.ArrayList;

@Service
public class ShouCangService {
    @Autowired
    private ShouCangMapper shouCangMapper;

    public int addShouCang(ShouCang shouCang){
        return shouCangMapper.addShouCang(shouCang);
    }

    public int deleteShouCangById(Serializable id){
        return shouCangMapper.deleteShouCangById(id);
    }

    public int updateShouCang(ShouCang shouCang){
        return shouCangMapper.updateShouCang(shouCang);
    }

    public ShouCang selectShouCangById(Serializable id){
        return shouCangMapper.selectShouCangById(id);
    }

    public ArrayList<ShouCang> selectShouCang(ShouCang shouCang){
        return shouCangMapper.selectShouCang(shouCang);
    }
}
